export function turnOrderStatus(status) {
    // String[] all = {"created", "allowed", "dispatched", "finished", "closed",
    // OrderStatus.cancled, OrderStatus.refused,
    // OrderStatus.travelEnded, OrderStatus.travelStarted};
    if (status == "created") {
        return "待审核";

    } else if (status == "allowed") {
        return "待调度";
    } else if (status == "dispatched") {
        return "待出发";
    } else if (status == "finished") {
        return "已完成";
    } else if (status == "closed") {
        return "已关闭";
    } else if (status == "cancled") {
        return "已取消";
    } else if (status == "travelStarted") {
        return "已出发";
    } else if (status == "travelEnded") {
        return "待确认";
    } else if (status == "refused") {
        return "未通过";
    } else {
        return "";
    }

}

export function turnOrderType(type) {
    if (type == "yuyue") {
        return "预约"
    } else if (type == "jieji") {
        return "接机"
    } else if (type == "songji") {
        return "送机"
    } else {
        return "-"
    }
}